package com.mj.mes.excelutil;

import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.springframework.stereotype.Component;

import java.io.File;
import java.util.List;
import java.util.Map;

/**
 *
 * @author cRyann
 * @create 2017-08-15 10:44
 **/
@Component
public class ExcelContrller {

    public List<Map<String, Object>> ImportExcel(File file,ImportParams params) {
        List<Map<String, Object>> list = null;
        try {
            list = ExcelImportUtil.importExcel(file,Map.class,params);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return list;
    }
    public List<Map<String, Object>> GetCellValue(File file,ImportParams params) {
        List<Map<String, Object>> list = null;
        return list;
    }
}
